public class Test2 {
    public static void main(String[] args) {
        Student []students=new Student[3];

        students[0]=new Student(1,"张三",18,"22计算机1班");
        students[1]=new Student(2,"李四",19,"22计算机2班");
        students[2]=new Student(3,"王五",21,"22计算机3班");

        for (int i = 0; i < 3; i++) {

            System.out.print(students[i].getNum()+" " );
            System.out.print(students[i].getName()+" ");
            System.out.print(students[i].getAge()+" ");
            System.out.print(students[i].getClass_()+" ");
            System.out.println();

        }
        Student s1=new Student();
        s1.setName("张三");
        s1.setAge(18);
        s1.setTall(170);
        s1.priCount();
        System.out.println(s1);


    }
}
